SwappableImage.resize

Resizes the data store.

Will not scale and $(U may) lose data in the process.
If the resize operation puts the image into a potentially errornous state, it should throw an exception.

struct SwappableImage(Color)
@safe
bool
resize
(
size_t newWidth
,
size_t newHeight
)
if (
isColor!Color
)

Parameters

newWidth size_t

The width the data store will become

newHeight size_t

The height the data store will become

Return Value

Type: bool

If the data store was successfully resized

Meta